# -*- coding: utf-8 -*-

'''
Description: 
'''
import os

module_path = os.path.abspath(__file__)
module_dir = os.path.dirname(module_path)

# overlay_src = os.path.join(module_dir, "overlay.png")

def get_search_list(html_content):
    # 创建BeautifulSoup对象
    soup = BeautifulSoup(html_content, 'html.parser')
    
    # 查找所有a标签
    links = soup.find_all('a')
    
    # 存储结果的列表
    results = []
    
    for link in links:
        # 获取href属性
        href = link.get('href', '')
        # 获取文本内容
        text = link.get_text(strip=True)
        if href and text:
            results.append({
                'href': href,
                'text': text
            })
    
    return results
